public class test {
    public static void main(String[] args) {

        for (int i = 1; i <= 30; i++) {
            System.out.print(i + "\t\t");
            if ((2 + i) % 7 == 0) {
                System.out.println();
            }
        }
    }
}
